package com.rc.evcharger.model.member;

import com.rc.evcharger.common.base.BaseModel;
import com.rc.evcharger.model.order.OrderInfo;

import java.math.BigDecimal;
import java.util.Date;

public class MemberAccountRecord extends BaseModel {
    private Long accountRecordId;

    private String tenantCode;

    private Long memberId;

    private String localTradeNo;

    private String inTradeNo;

    private Long enterpeiseId;

    private String accountType;

    private String recordType;

    private BigDecimal amount;

    private BigDecimal result;

    private String sourceTradeNo;

    private String refundStatus;

    private String frozenStatus;

    private String remark;

    private String createdBy;

    private Date createdTime;

    private String lastUpdatedBy;

    private Date lastUpdatedTime;

    private String channelType;

    private String channelLevel;

    private Long rabeteRatio;

    private String channelStatus;

    private Date withdrawTime;

    //需要有
    public MemberAccountRecord() {
    }

    public MemberAccountRecord(OrderInfo order, BigDecimal result) {
        super();
        this.memberId = order.getMemberId();
        this.tenantCode = order.getTenantCode();
        this.localTradeNo = order.getOrderNum();
        this.recordType = "1";
        this.amount = order.getPayAmount();
        this.result = result;
        this.createdTime = new Date();
        this.accountType = order.getAccountType();
        this.remark = "充电扣费";
    }

    public Long getAccountRecordId() {
        return accountRecordId;
    }

    public void setAccountRecordId(Long accountRecordId) {
        this.accountRecordId = accountRecordId;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getLocalTradeNo() {
        return localTradeNo;
    }

    public void setLocalTradeNo(String localTradeNo) {
        this.localTradeNo = localTradeNo;
    }

    public String getInTradeNo() {
        return inTradeNo;
    }

    public void setInTradeNo(String inTradeNo) {
        this.inTradeNo = inTradeNo;
    }

    public Long getEnterpeiseId() {
        return enterpeiseId;
    }

    public void setEnterpeiseId(Long enterpeiseId) {
        this.enterpeiseId = enterpeiseId;
    }

    public String getAccountType() {
        return accountType;
    }

    public void setAccountType(String accountType) {
        this.accountType = accountType;
    }

    public String getRecordType() {
        return recordType;
    }

    public void setRecordType(String recordType) {
        this.recordType = recordType;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getResult() {
        return result;
    }

    public void setResult(BigDecimal result) {
        this.result = result;
    }

    public String getSourceTradeNo() {
        return sourceTradeNo;
    }

    public void setSourceTradeNo(String sourceTradeNo) {
        this.sourceTradeNo = sourceTradeNo;
    }

    public String getRefundStatus() {
        return refundStatus;
    }

    public void setRefundStatus(String refundStatus) {
        this.refundStatus = refundStatus;
    }

    public String getFrozenStatus() {
        return frozenStatus;
    }

    public void setFrozenStatus(String frozenStatus) {
        this.frozenStatus = frozenStatus;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(String lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Date getLastUpdatedTime() {
        return lastUpdatedTime;
    }

    public void setLastUpdatedTime(Date lastUpdatedTime) {
        this.lastUpdatedTime = lastUpdatedTime;
    }

    public String getChannelType() {
        return channelType;
    }

    public void setChannelType(String channelType) {
        this.channelType = channelType;
    }

    public String getChannelLevel() {
        return channelLevel;
    }

    public void setChannelLevel(String channelLevel) {
        this.channelLevel = channelLevel;
    }

    public Long getRabeteRatio() {
        return rabeteRatio;
    }

    public void setRabeteRatio(Long rabeteRatio) {
        this.rabeteRatio = rabeteRatio;
    }

    public String getChannelStatus() {
        return channelStatus;
    }

    public void setChannelStatus(String channelStatus) {
        this.channelStatus = channelStatus;
    }

    public Date getWithdrawTime() {
        return withdrawTime;
    }

    public void setWithdrawTime(Date withdrawTime) {
        this.withdrawTime = withdrawTime;
    }
}